package com.ht.module.bus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * <p>
 * 车站信息
 * </p>
 *
 * @author hejialun
 * @since 2024-07-29
 */

@TableName("t_station")
@Data
@Accessors(chain = true)
public class TStation{

	@ApiModelProperty("站点编码")
    @TableId
    private String stationCode;

	@ApiModelProperty("区划编码")
    @NotEmpty
    private String districtCode;

	@ApiModelProperty("站点名称")
    @NotEmpty
    private String stationName;

	@ApiModelProperty("描述")
    private String description;

	@ApiModelProperty("部门id")
    private String deptId;

    @ApiModelProperty("01有效,02无效")
    private String state;

	@ApiModelProperty("uuid")
    private String createUser;
    private LocalDateTime createDate;
    private String updateUser;
    private LocalDateTime updateDate;


    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty("区划名称")
    @TableField(exist = false)
    private String districtName;

    @ApiModelProperty("创建人姓名")
    @TableField(exist = false)
    private String createUserName;

    @ApiModelProperty("站点学生数")
    @TableField(exist = false)
    private Integer studentNum;


}
